﻿@{
    ViewBag.Title = "AddSite";
    ViewBag.MenuIndex = 2;
}
@model Xwork.SEO.SeoSite
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/themes/base/css")
@if (!User.IsAuthenticated)
{
<div class="ny">
    <div class="ny_kb9"></div>
    <div class="ny_content">
        @Html.Action("UserInfoLeft","member")
        <div class="ny_content_right" style="height:593px;">
        	<div class="ny_right_1">
            	<div class="ny_right_1_1">资料管理</div>
            </div>
            <div class="ny_right_2">         
                <div class="td06">
                    <div class="left_content">
                        <h4><font color="#ff6600">*</font> 站点名称：</h4>
                        <h4><font color="#ff6600">*</font> 行业：</h4>
                        <h4><font color="#ff6600">*</font> 站点地址：</h4>
                        <h4><font color="#ff6600">*</font> ftp地址：</h4>
                        <h4><font color="#ff6600">*</font> ftp端口：</h4>
                        <h4><font color="#ff6600">*</font> ftp帐号：</h4>
                        <h4><font color="#ff6600">*</font> ftp密码：</h4>
                        <h4><font color="#ff6600">*</font> 预存：</h4>
                        <h4><font color="#ff6600">*</font> 备注：</h4>
                        <h4 style="height:60px;">&nbsp;</h4>
                    </div>
                    <div class="right_content">
                        @using (Html.BeginForm("addsite", "site", FormMethod.Post, new { enctype = "multipart/form-data", name = "myform" }))
                        {
                         @Html.ValidationSummary(true)
                            @Html.HiddenFor(p => p.ID)
                            @Html.HiddenFor(p => p.CreateTime)
                        <ul>
                            <li>@Html.EditorFor(p => p.Name)                    @Html.ValidationMessageFor(p => p.Name)    </li>
                            <li>@Html.EditorFor(p => p.Trades)                      @Html.ValidationMessageFor(p => p.Trades)    </li>
                            <li>@Html.EditorFor(p => p.SiteUrl)  <span>如www.abc.com，不含http</span>                    @Html.ValidationMessageFor(p => p.SiteUrl)    </li>
                            <li>@Html.EditorFor(p => p.Ftp)                      @Html.ValidationMessageFor(p => p.Ftp)   </li>
                            <li>@Html.EditorFor(p => p.FtpPort)                      @Html.ValidationMessageFor(p => p.FtpPort)</li>
                            <li>@Html.EditorFor(p => p.FtpUserName)                      @Html.ValidationMessageFor(p => p.FtpUserName)</li>
                            <li>@Html.EditorFor(p => p.FtpPassword)                      @Html.ValidationMessageFor(p => p.FtpPassword)</li>
                            <li>@Html.EditorFor(p => p.Amount)                      @Html.ValidationMessageFor(p => p.Amount)</li>
                            <li>@Html.EditorFor(p => p.Remark)                      @Html.ValidationMessageFor(p => p.Remark)</li>
                            <li class="button02">   <input type="submit" name="submit" value="">                            </li>
                        </ul>
                        }  
                    </div>
                </div>   
            </div>
        </div>
    </div>
</div>
}
else
{
    <div id="info">
        您的账户未审核，请先完善公司资料以便我们审核！
        <a style="color:#eb7a14;" href="@Url.Action("info", "member")">完善资料</a>
    </div>
    <div>
        <script type="text/javascript">
            $("#info").dialog({title:"系统提示"});
        </script>

    </div>
}
